/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model_package;

/**
 *
 * @author haythem
 */
public class SuccessionRelation {
    private String predecessorX ;
    private String successorY ;

    public SuccessionRelation(String predecessorX, String successorY) {
        this.predecessorX = predecessorX;
        this.successorY = successorY;
    }

    public String getPredecessorX() {
        return predecessorX;
    }

    public String getSuccessorY() {
        return successorY;
    }

    public void setPredecessorX(String predecessorX) {
        this.predecessorX = predecessorX;
    }

    public void setSuccessorY(String successorY) {
        this.successorY = successorY;
    }

    public String toString(){
        return predecessorX+"->"+successorY;
    }
}
